package com.yltrcc.blog.generate.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * tips main主表和标签tag表 关联表
 * @TableName tips_main_tag_rel
 */
@TableName(value ="tips_main_tag_rel")
public class TipsMainTagRel implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 
     */
    private Integer tipsMainId;

    /**
     * 
     */
    private Integer tipsTagId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 
     */
    public Integer getTipsMainId() {
        return tipsMainId;
    }

    /**
     * 
     */
    public void setTipsMainId(Integer tipsMainId) {
        this.tipsMainId = tipsMainId;
    }

    /**
     * 
     */
    public Integer getTipsTagId() {
        return tipsTagId;
    }

    /**
     * 
     */
    public void setTipsTagId(Integer tipsTagId) {
        this.tipsTagId = tipsTagId;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TipsMainTagRel other = (TipsMainTagRel) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getTipsMainId() == null ? other.getTipsMainId() == null : this.getTipsMainId().equals(other.getTipsMainId()))
            && (this.getTipsTagId() == null ? other.getTipsTagId() == null : this.getTipsTagId().equals(other.getTipsTagId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getTipsMainId() == null) ? 0 : getTipsMainId().hashCode());
        result = prime * result + ((getTipsTagId() == null) ? 0 : getTipsTagId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", tipsMainId=").append(tipsMainId);
        sb.append(", tipsTagId=").append(tipsTagId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}